package com.wolfalpha.utron.adapter;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.easemob.chat.EMConversation;
import com.easemob.chat.EMMessage;

/**
 * Created by luodon on 15/9/5.
 */
public class PartnerChatListAdapter extends BaseAdapter {

    private EMConversation conversation;
    EMMessage[] messages = null;

    @Override
    public int getCount() {
        return messages == null ? 0 : messages.length;
    }

    @Override
    public Object getItem(int position) {
        if (messages != null && position < messages.length) {
            return messages[position];
        }
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}
